package com.jt.demo1;

public class NewDog {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Dog dog = (Dog) Class.forName("com.jt.demo1.Dog").newInstance();

        dog.hello();
    }

}
